import request from "@/router/requer.js";

// 自选香草——列表
export function folder(data) {
  return request({
    url: "/api/user_stock/folder",
    method: "get",
    params: data,
  });
}

// 自选香草——列表
export function stocklist(data) {
  return request({
    url: "/api/user_stock/stocklist",
    method: "get",
    params: data,
  });
}

// 自选香草——保存板块
export function save_folder(data) {
  return request({
    url: "/api/user_stock/save_folder",
    method: "post",
    data: data,
  });
}

export function del_folder(data) {
  return request({
    url: "/api/user_stock/del_folder",
    method: "post",
    data: data,
  });
}

export function move_folder(data) {
  return request({
    url: "/api/user_stock/move_folder",
    method: "post",
    data: data,
  });
}

//新建并加入
export function save_folder_join(data) {
  return request({
    url: "/api/user_stock/save_folder_join",
    method: "post",
    data: data,
  });
}